<?php
import( 'tools.Setup.interfaces.SetupScreen' );
import( 'tools.Setup.classes.BaseSetupScreen' );
class StartScreen extends BaseSetupScreen #implements SetupScreen
{
	public function handleAction( $action )
	{
		if( $action == "setLanguage" )
		{
			$this->setLanguage( $_POST['language'] );
			header( "Location: setup.php5" );
		}
		else if( $action == "start" )
		{
			
			return true;
		}
	}

	public function getView()
	{
		$ui['label_language']	= $this->words['fields']['language'];

		$options	= $this->words['languages'];
		$options['_selected']	= $_SESSION['bts_language'];
		$ui['field_language']	= UI_HTML_Elements::Select( 'language', $options );
		return $this->loadTemplate( $ui );
	}
}
?>